import request from '@/utils/request'

// 查询电梯维修单列表
export function listAfElevatorRepair(query) {
  return request({
    url: '/security/afElevatorRepair/list',
    method: 'get',
    params: query
  })
}

// 查询电梯维修单详细
export function getAfElevatorRepair(orderNo) {
  return request({
    url: '/security/afElevatorRepair/' + orderNo,
    method: 'get'
  })
}

// 新增电梯维修单
export function addAfElevatorRepair(data) {
  return request({
    url: '/security/afElevatorRepair',
    method: 'post',
    data: data
  })
}

// 修改电梯维修单
export function updateAfElevatorRepair(data) {
  return request({
    url: '/security/afElevatorRepair',
    method: 'put',
    data: data
  })
}

// 删除电梯维修单
export function delAfElevatorRepair(orderNo) {
  return request({
    url: '/security/afElevatorRepair/' + orderNo,
    method: 'delete'
  })
}

export function syncAfElevatorRepair() {
  return request({
    url: '/security/afElevatorRepair/syncInfo' ,
    method: 'get'
  })
}
